package top.ahwyy.controller.Action;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.apache.struts2.interceptor.ServletRequestAware;
import org.apache.struts2.interceptor.ServletResponseAware;

import top.ahwyy.controller.impl.cardImpl;
import top.ahwyy.controller.inter.card;

public class userZanAction implements ServletRequestAware, ServletResponseAware {

	public String forumId;
	public String uid;
	public String execute(){
		card ci = new cardImpl();
		if(forumId == null || uid == null ||forumId.equals("") || uid.equals(""))
			return "false";
		
		
		boolean flag = ci.userZan(new Integer(forumId), new Integer(uid));
		if(!flag)
			return "false";
		
		return "success";
	}
	@Override
	public void setServletResponse(HttpServletResponse arg0) {
		// TODO Auto-generated method stub

	}

	@Override
	public void setServletRequest(HttpServletRequest arg0) {
		// TODO Auto-generated method stub

	}

}
